-
Notifications
You must be signed in to change notification settings - Fork 186
Switch from template-haskell to template-haskell-lift #1162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
4ccd3a1 to
ad2e782
Compare
|
Why doesn't the new package support older GHC versions? The CPP seems a bit blecherous. |
|
template-haskell-lift is compatible with GHC>=8.10. But it is only a boot library with GHC>=9.14. So you wouldn't be able to backport new releases of containers to older GHCs as a boot lib (they would build fine from Hackage though). Let me know what you'd prefer.
Eventually though, |
|
That's only a potential issue for new releases on old GHC branches, right? I suppose it would be okay to have some CPP temporarily to support that as long as such branches are "supported" by GHC HQ. But wouldn't it be cleaner to just add |
|
Yeah I agree that would be optimal. Unfortunately I don't think we can add new boot libs in minor releases (but I'll ask) since that can be disruptive. I can commit to removing this CPP when it's no longer necessary though. |
150bcfc to
cb380cd
Compare
This new boot library should be more stable than template-haskell and should eventually allow us to remove much of the CPP around TH. It will also make it easier for end-users to reinstall template-haskell as it will no longer be used by any boot libraries
|
Now that GHC-9.14 is released we can test this. |
|
Any idea what's going wrong with MucroHs? It smells like a CPP formatting issue, but I can't find it. |
I think that it doesn't like the |
This new boot library should be more stable than template-haskell and
should eventually allow us to remove much of the CPP around TH.
It will also make it easier for end-users to reinstall template-haskell
as it will no longer be used by any boot libraries
This GHC MR tests this PR against GHC-HEAD: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/14978